using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Collections;
using System.Collections.Generic;
namespace Kunlun.Models
{
      public class Product_pic
      {
         [Key]  
         [DisplayName("产品图片ID")] 
         public int ID { get; set; }
         [DisplayName("产品ID")] 
         public string ProductID { get; set; }
         [Required(ErrorMessage = "图片地址不能空")]  
         [DisplayName("图片地址")] 
         public string ImageUrl { get; set; }
         [DisplayName("图片alt")] 
         public string ImageAlt { get; set; }
         [DisplayName("列表显示图")] 
         public string ListPicUrl { get; set; }
         [DisplayName("缩略图地址")] 
         public string ThumUrl { get; set; }
         [DisplayName("宽度")] 
         public double Width { get; set; }
         [DisplayName("高度")] 
         public double Height { get; set; }
         [DisplayName("管理员ID")] 
         public int Mid { get; set; }
         [Required(ErrorMessage = "是否可用不能空")]  
         [DisplayName("是否可用")] 
         public bool IsVisible { get; set; }
         [DisplayName("是否放入回收站")] 
         public bool IsDel { get; set; }
         [Required(ErrorMessage = "上传时间不能空")]  
         [DisplayName("上传时间")] 
         public DateTime BeginDate { get; set; }
         [DisplayName("最后修改时间")] 
         public DateTime LastUpdateTime { get; set; }
         [DisplayName("排序")]
         public int Sort { get; set; }
         } 
} 
